package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-09-07
 * Time: 16:51
 */
public class DisplayOperation implements IOperation{

    public void work(BookList bookList) {
        System.out.println("打印图书");
        int size = bookList.getUedSize();
        for (int i = 0; i < size; i++) {
            Book book = bookList.getPos(i);
            System.out.println(book);
        }
    }

}
